package static关键字;

/**
 * @author zhangjunfei
 * @date 2024/5/22 10:01
 */
public class TestStatic {

    static {
        System.out.println("test1");
    }

    static int anInt=initA();

    static {
        System.out.println(anInt);
        System.out.println("test2");
    }

    static int initA(){
        System.out.println("method");
        return 1;
    }




}
